export namespace IAuth {

  export namespace Params {
    //获取openId
    export interface GetOpenId {
      code: string
      app: 'franchisee'
      promotionCode?: string
    }
    //登录参数
    export interface Login {
      openId?: string // 微信openId
      code: string // 手机号
      app: string // 固定franchisee
      password?: string // 密码
      uuid?: string // 验证码uuid
      captcha?: string // 验证码
    }
    // 修改头像请求
    export interface UpdateAvatar {
      portrait: string
    }
    // 修改昵称请求
    export interface UpdateName {
      name: string
    }
  }

  // 一键登录返回
  export interface Result {
    result: string
    meta: {
      openid?: string
      openId?: string
      mobile?: string
      id?: number
    }
    id?: number
  }

  // 获取图片验证返回
  export interface verifyRes {
    base64: string,
    uuid: string
  }

  // 推广二维码返回
  export interface PromoteCode {
    biddingUrl: string
  }

  // 用户权限返回
  export interface RulesResult {
    id: number
    permission: {
      id: number
      name: string
      module: {
        module: string
        name: string
      }
      isImmutable: boolean
    }
    operation: {
      entity: {
        entity: string
        name: string
        module: {
          module: string
          name: string
        }
      }
      code: string
      name: string
    }
    createAt: string
  }

  // 获取短链接返回
  export interface ShortUrl {
    shortLink: string
  }
  // 获取客服信息返回
  export interface CustomerInfo {
    admin: boolean
    isDeparture: string
    manger: boolean
    nickName: string
    phonenumber: string
    placeCompany: string
    purchaserId: string
    searchCount: number
    userId: number
    userName: string
  }
}
